/**
 * 实际执行情况
 */
export interface IExecute {
    data: string | undefined;
    remark: string;
}
/**
 * 党建信息
 */
export interface IParty {
    id: number;             //ID
    partyName: string;      //支部名称
    partyTime: string;      //年度
    partyType: string;      //类别
    projectName: string;    //项目名称
    checkey: Array<string> | undefined;        //检查要点
    evaluation1: Array<string> | undefined;     //主要评价指标1
    evaluation2: Array<string> | undefined;     //主要评价指标2
    evaluation3: Array<string> | undefined;     //主要评价指标3
    execute1: Array<IExecute>;     //主要评价指标1
    execute2: Array<IExecute>;     //主要评价指标2
    execute3: Array<IExecute>;     //主要评价指标3
    bonus: Array<IExecute>;        //加分项
    negative: Array<IExecute>;     //减分项
    score: number;               //得分
    scoreLabel: string;          //等次
    censorScore: number;         //审定得分
    censorScoreLabel: string;    //审定等次
    censorRemark: string;        //审定备注
    censorStatus: string;        //审定状态
}

export interface IPartyConfig {
    label: string,
    id: number,
    name: string,
    parentId: number,
    code: number,
    children: Array<IPartyConfig>,
    isEditNode: boolean,
    isAddNode: boolean
}

export interface IPartyForm {
    partyName: string;              //支部名称
    partyTime: string;              //年度
    partyType: string;              //类别
    bonus: Array<IExecute>;         //加分项
    negative: Array<IExecute>;      //减分项
    property: Array<IProperty>;     //属性
    score: number;                  //分数
}

export interface IProperty {
    id: number;                         //id
    index: number;                      //数组下标
    projectName: string;                //项目名称
    checkey: Array<string> | undefined; //检查要点
    evaluationType: string;             //主要评价类别: 1.工作推进与制度执行 2.工作质量与实际成效 3. 有无严禁发生的行为
    evaluation: string;                 //主要评价指标
    isCheck: boolean;                   //是否评价指标
    execute: string | undefined;        //实际评价指标
    remark: string;                     //备注信息
}

/**
 * 等次调整
 */
export interface IRankAdjust {
    id: number;             //ID
    type: string;           //类别
    situation: string;      //情形
    isCheck: boolean;       //有无
    remark: string;         //备注
}

/**
 * 等次审核
 */
export interface IRankCensor {
    id: number;             //ID
    type: string;           //类别
    situation: string;      //情形
    remark: string;         //备注
    score: number;          //审核分数
    scoreLabel: string;     //分数label
    status: string;         //审查状态
}

/**
 * 党组织名称信息
 */
export interface IPartyName {
    id: number;     //ID
    name: string;   //名称
    code: number;   //排序
    departmentId: number;//部门ID
}

export interface ITypeNumber {
    total: number;
    checkNumber: number;
    name: string;
}

export interface IEChartParty {
    name: string;               //支部名称
    score: number;              //分数
    type: Array<ITypeNumber>;   //评价个数
    bonus: Array<IExecute>;     //加分项
    negative: Array<IExecute>;  //减分项
    censorStatus: string;       //审核状态
}

export interface IEChartXAxis {
    type: string;
    axisTick: { show: boolean };
    data: Array<String>;
}

export interface IEChartSeries {
    name: string;
    type: string;
    barGap: number;
    emphasis: {
        focus: string;
    };
    data: Array<number>;
}

export interface IForbid {
    id: number;             //ID
    partyName: string;      //支部名称
    partyTime: string;      //年度
    partyType: string;      //类别
    projectName: string;    //项目名称
    evaluation3: Array<string> | undefined;     //主要评价指标3
    execute3: Array<IExecute>;     //主要评价指标3
}

export interface IEChartRadar {
    name: string;
    max: number;
}

export interface IEChartRadarSeriesData {
    value: Array<number>;
    name: string;
}